#include <jni.h>
#include <stdlib.h>
#include <string.h>


#include <nel/3d/u_driver.h>

#ifdef __cplusplus
extern "C" {
#endif

JNIEXPORT jlong JNICALL Java_org_ryzom_nel_threed_nel3dJNIAddition_new_1UDriver_1CMode_11 (JNIEnv *, jclass)
{
	jlong jresult = 0 ;
	NL3D::UDriver::CMode* result=0;
	result = new NL3D::UDriver::CMode();
	*(NL3D::UDriver::CMode**)&jresult = result;
	return jresult;
}

JNIEXPORT jlong JNICALL Java_org_ryzom_nel_threed_nel3dJNIAddition_new_1UDriver_1CMode_12 (JNIEnv *, jclass, jint w, jint h, jbyte d, jboolean  windowed, jint frequency, jbyte aa)
{
	jlong jresult = 0 ;
	NL3D::UDriver::CMode* result=0;
	
	result = new NL3D::UDriver::CMode((uint16)w, (uint16)h, (uint8)d, (bool) windowed, (uint)frequency, (sint) aa);
	*(NL3D::UDriver::CMode**)&jresult = result;
	return jresult;
}

#ifdef __cplusplus
}
#endif
